package com.ewanghuiju.app.base.contract.home;

import com.ewanghuiju.app.base.BasePresenter;
import com.ewanghuiju.app.base.BaseView;
import com.ewanghuiju.app.model.bean.local.SearchHotBean;
import com.ewanghuiju.app.model.bean.response.HistorySearchResponBean;

import java.util.List;

/**
 * @author sj  qq:751943509
 * @class describe
 * @time 2020/2/14
 */
public interface SearchShopContract {

    interface View extends BaseView {
        void showContent(String bean);

        void showMoreContent(int code, String message);

        //显示历史列表
        void showtHistorydata(List<HistorySearchResponBean> list);
        //删除历史

        void deleteHistorySuccess();
        //热词搜索
        void showtHotWords(List<SearchHotBean> list);

        void deleteHistoryFail();
    }

    interface Presenter extends BasePresenter<View> {

        void getHotdata(String request);

        //获取热词搜索
        void getHotWords();

        //获取历史搜索
        void getHistorydata();

        //删除搜索历史
        void deleteHistorydata(String type, String name);

    }

}
